﻿@model TopArtMVC.Models.PostView

@{
    ViewBag.Title = "Add a new Post";
}

<h2>Create</h2>


@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-inline">
       
        <hr />
        @Html.ValidationSummary(true)

      
        

        <div class="form-horizontal">
            @Html.LabelFor(model => model.Title, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Artist, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Artist)
                @Html.ValidationMessageFor(model => model.Artist)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Album, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Album)
                @Html.ValidationMessageFor(model => model.Album)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Genre, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Genre)
                @Html.ValidationMessageFor(model => model.Genre)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ImagePath, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ImagePath)
                @Html.ValidationMessageFor(model => model.ImagePath)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.ReleseDate, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.ReleseDate)
                @Html.ValidationMessageFor(model => model.ReleseDate)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.FacebookLink, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.FacebookLink)
                @Html.ValidationMessageFor(model => model.FacebookLink)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.TwitterLink, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.TwitterLink)
                @Html.ValidationMessageFor(model => model.TwitterLink)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.VideoLink, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.VideoLink)
                @Html.ValidationMessageFor(model => model.VideoLink)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.YoutubeChannel, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.YoutubeChannel)
                @Html.ValidationMessageFor(model => model.YoutubeChannel)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.GooglePlus, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.GooglePlus)
                @Html.ValidationMessageFor(model => model.GooglePlus)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.EmbededData, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.EmbededData)
                @Html.ValidationMessageFor(model => model.EmbededData)
            </div>
        </div>


               <div class="divPostText">
            @Html.LabelFor(model => model.PostText, new { @class = "lblAbout" })
            <div class="col-md-10">
                <div id="divPostTextID">
                @Html.EditorFor(model => model.PostText)
                    </div>
                @Html.ValidationMessageFor(model => model.PostText)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Add Post" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
